<?php $this->load->view('header', $head);
	//$conditions = $poll->conditions;
	/**
	 * conditions->poll_id
	 * conditions->age_range
	 * conditions->gender
	 * conditions->education
	 * 
	 */
	
	
?>

<div data-role="page" id="poll-result-vote">
	<div data-role="header">
		<h1>설문결과</h1>
		<a href="<?=site_url()?>" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
	</div><!-- /header -->
	<div data-role="content">
		<?=form_open('ajax/response_result', array('class' => 'ajax-form'))?>
			<ul data-role="listview" data-inset="true">
				<li data-role="list-divider">
					설문
				</li>
				<li id="list-chart-template">
					<div id="chart_gender_div"></div>
				</li>
				<li>
					<div id="chart_age_div"></div>
				</li>
				<li>
					<div id="chart_education_div"></div>
				</li>
				<li class="ui-body ui-body-b">
					<fieldset class="ui-grid-a">
						<div class="ui-block-a">
							<button type="reset" data-theme="d">
								초기화
							</button>
						</div>
						<div class="ui-block-b">
							<button type="submit" data-theme="a">
								작성하기
							</button>
						</div>
					</fieldset>
				</li>
			</ul>
			<?=validation_errors()?>
		<?=form_close()?>
	</div><!-- /content -->
	<div data-role="footer">&nbsp;</div>
	<script>
		var RESULT_VOTE = <?=json_encode($cnt)?>;
	</script>
</div><!-- /page page-add-question -->

<?php $this->load->view('footer'); ?>